<?php if (!defined('THINK_PATH')) exit(); /*a:3:{s:59:"D:\www\fdc\public/../application/manage\view\user\edit.html";i:1493801318;s:63:"D:\www\fdc\public/../application/manage\view\public\header.html";i:1490355172;s:63:"D:\www\fdc\public/../application/manage\view\public\footer.html";i:1474280020;}*/ ?>
<!doctype html>
<html>
<head>
	<meta charset="utf-8" />
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
	<link href="__CSS__/style.css" rel="stylesheet"/>
	<title>管理中心</title>

</head>

<body>
<div id="J_ajax_loading" class="ajax_loading">加载中...</div>

<div class="subnav">
    <div class="content_menu ib_a blue line_x">
        <?php if(!empty($sub_menu) OR !empty($big_menu)): if(!(empty($big_menu) || (($big_menu instanceof \think\Collection || $big_menu instanceof \think\Paginator ) && $big_menu->isEmpty()))): if(isset($normal)): ?>
        <a class="add fb" href="<?php echo $big_menu['iframe']; ?>"><em><?php echo $big_menu['title']; ?></em></a>
        <?php else: ?>
    	<a class="add fb J_showdialog" href="javascript:void(0);" data-uri="<?php echo $big_menu['iframe']; ?>" data-title="<?php echo $big_menu['title']; ?>" data-id="<?php echo $big_menu['id']; ?>" data-width="<?php echo $big_menu['width']; ?>" data-height="<?php echo $big_menu['height']; ?>"><em><?php echo $big_menu['title']; ?></em></a>
        <?php endif; endif; if(!(empty($sub_menu) || (($sub_menu instanceof \think\Collection || $sub_menu instanceof \think\Paginator ) && $sub_menu->isEmpty()))): if(is_array($sub_menu) || $sub_menu instanceof \think\Collection || $sub_menu instanceof \think\Paginator): $key = 0; $__LIST__ = $sub_menu;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$val): $mod = ($key % 2 );++$key;if($key != 1): ?><span>|</span><?php endif; ?>
        <a href="<?php echo $val['url']; ?>" class="<?php echo $val['class']; ?>"><em><?php echo $val['name']; ?></em></a>
        <?php endforeach; endif; else: echo "" ;endif; endif; endif; ?>
    </div>
</div>

<!--添加文章-->
<form id="info_form" action="<?php echo url('User/editDo'); ?>" method="post" enctype="multipart/form-data">
    <div class="pad_lr_10">
        <div class="col_tab">
            <ul class="J_tabs tab_but cu_li">
                <li class="current">会员信息</li>
            </ul>
            <div class="J_panes">
                <div class="content_list pad_10">
                    <table width="100%" cellspacing="0" class="table_form">
                        <tr>
                            <th width="120">所属模型 :</th>
                            <td>
                                <?php if(is_array($modelArr) || $modelArr instanceof \think\Collection || $modelArr instanceof \think\Paginator): $i = 0; $__LIST__ = $modelArr;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                                <input type="radio" name="model" id="m_<?php echo $key; ?>" value="<?php echo $key; ?>" <?php if($key == $info->getData('model')): ?>checked<?php endif; ?>><label for="m_<?php echo $key; ?>"><?php echo $vo; ?></label>
                                <?php endforeach; endif; else: echo "" ;endif; ?>
                            </td>
                        </tr>
                        <tr>
                            <th>用户名：</th>
                            <td><input type="text" name="username" id="username" class="input-text" size="20" value="<?php echo $info['username']; ?>"></td>
                        </tr>
                        <tr>
                            <th>密码: </th>
                            <td><input type="password" name="password" class="input-text" size="20"><span>不修改请留空</span></td>
                        </tr>

                        <tr>
                            <th>手机号:</th>
                            <td><input type="text" name="mobile" id="mobile" class="input-text" size="20" value="<?php echo $info['mobile']; ?>" /></td>
                        </tr>
                        <tr>
                            <th>邮箱:</th>
                            <td><input type="text" name="email" id="email" class="input-text" size="20" value="<?php echo $info['email']; ?>"></td>
                        </tr>
                        <tr>
                            <th>购房热线:</th>
                            <td><input type="text" name="buy_phone" class="input-text" value="<?php echo $info['buy_phone']; ?>" size="20"></td>
                        </tr>
                        <tr>
                            <th>所属公司:</th>
                            <td><input type="text" name="company" class="input-text" value="<?php echo $info['company']; ?>" size="20"></td>
                        </tr>
                        <tr>
                            <th>真实姓名:</th>
                            <td><input type="text" name="data[truename]" class="input-text" value="<?php echo $info['userInfo']['truename']; ?>" size="20"></td>
                        </tr>
                        <tr>
                            <th>身份证号:</th>
                            <td><input type="text" name="data[bodycode]" class="input-text" value="<?php echo $info['userInfo']['bodycode']; ?>" size="20"></td>
                        </tr>
                        <tr>
                            <th>证件照片:</th>
                            <td>
                                <?php if(!(empty($info['cardimg']) || (($info['cardimg'] instanceof \think\Collection || $info['cardimg'] instanceof \think\Paginator ) && $info['cardimg']->isEmpty()))): ?>
                                <a href="<?php echo $info['cardimg']; ?>" target="_blank"><img src="<?php echo $info['cardimg']; ?>" alt="" width="100"></a>
                                <?php else: ?>
                                未上传
                                <?php endif; ?>
                            </td>
                        </tr>
                        <tr>
                            <th>联系QQ:</th>
                            <td><input type="text" name="data[qq]" class="input-text" value="<?php echo $info['userInfo']['qq']; ?>" size="20"></td>
                        </tr>
                        <tr>
                            <th>昵称 :</th>
                            <td><input type="text" name="nickname" class="input-text" size="20" value="<?php echo $info['nickname']; ?>"></td>
                        </tr>
                        <tr>
                            <th>生日:</th>
                            <td>
                                <input type="text" name="birthday" id="birthday" onclick="myCalendar();" class="date" value="<?php echo $info['userInfo']['birthday']; ?>">
                            </td>
                        </tr>
                        <tr>
                            <th>联系地址:</th>
                            <td><input type="text" name="address" class="input-text" size="50" value="<?php echo $info['userInfo']['address']; ?>"></td>
                        </tr>
                    </table>
                </div>
                <input type="hidden" name="id" value="<?php echo $info['id']; ?>">
            </div>
            <div class="mt10"><input type="submit" value="提交" id="dosubmit" name="dosubmit" class="btn btn_submit" style="margin:0 0 10px 100px;"><br /><br /><br /></div>
        </div>
    </div>
</form>
<script src="__PUBLIC__/js/jquery.min.1.7.2.js"></script>
<script src="__JS__/manage.js"></script>
<script src="__JS__/admin.js"></script>
<script>
//初始化弹窗
(function (d) {
    d['okValue'] = '确定';
    d['cancelValue'] = '取消';
    d['title'] = '标题';
})($.dialog.defaults);
</script>
<script src="__PUBLIC__/js/plugins/formvalidator.js"></script>
<?php if(isset($list_table)): ?>
<script src="__PUBLIC__/js/plugins/listTable.js"></script>
<script>
$(function(){
	$('.J_tablelist').listTable();
});
</script>
<?php endif; ?>
<script src="__PUBLIC__/js/calendar/WdatePicker.js" charset="utf-8"></script>
<script>
    function myCalendar(id){
        WdatePicker({dateFmt:'MM-dd',el:id});
    }
    $(function() {
        $.formValidator.initConfig({formid:"info_form",autotip:true});
        $("#mobile").formValidator({onshow:'请填写手机号',onfocus:'请填写手机号'}).regexValidator({regexp:"mobile",datatype:"enum",onerror:"手机号码格式错误"}).defaultPassed();
    });
</script>
</body>
</html>